from django.db import models

# Create your models here.
class User_info(models.Model):
    id = models.CharField(max_length=10,primary_key=True)
    username = models.CharField(max_length=45)
    choices =((1,'男'),(2,'女'),(3,'未知'))
    gender = models.IntegerField(choices = choices,default=3)
    phone_num = models.CharField(max_length=14)
    account = models.CharField(max_length=45)
    password = models.CharField(max_length=45)
    choices2 =((1,'v1'),(2,'v2'),(3,'v3'))
    grade = models.IntegerField(choices = choices2,default=1)
    choices3 = ((1,'正常'),(2,'禁言'),(3,'封禁'))
    state = models.IntegerField(choices = choices3,default=1)
    email = models.CharField(max_length=45)
    wechat = models.CharField(max_length=50)
    H_photo = models.CharField(max_length=100)